package com.demo.service;

import com.demo.entity.Department;

import java.util.List;

public interface DepartmentService {

    int save(Department department);

    int delete(int id);

    int deleteAll();

    int modify(Department department);

    Department getOne(int id);

    List<Department> getAll();

    int findTotals();

    List<Department> findByPage(Integer pageNow, Integer pageSize);

    List<Department> treeList();

    List<Department> getChilde(int id, List<Department> rootList);

    public void remakeDepartment();
}
